﻿using MalwarePatch.Languages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Shell;

namespace MalwarePatch
{
    static class AppJumpList
    {
        public static void CreateJumpList()
        {
            var jumpList = new JumpList();
            var language = new MainLanguage();
            jumpList.JumpItems.Add(new JumpTask
            {
                Title = language[MainLanguage.Keys.DisallowProgram],
                Arguments = "--disallow",
                Description = language[MainLanguage.Keys.DisallowProgramDescription],
                IconResourceIndex = 1,
            });
            jumpList.JumpItems.Add(new JumpTask
            {
                Title = language[MainLanguage.Keys.AllowProgram],
                Arguments = "--allow",
                Description = language[MainLanguage.Keys.AllowProgramDescription],
                IconResourceIndex = 2,
            });
            jumpList.ShowFrequentCategory = false;
            jumpList.ShowRecentCategory = false;
            JumpList.SetJumpList(Application.Current, jumpList);
        }
    }
}
